import request from "../utils/request";

export function getComps(params) {
  return request({
    url: "/comps/list",
    method: "GET",
    params
  });
}

export function deleteComp(data) {
  return request({
    url: "/comps",
    method: "delete",
    params: data
  });
}

export function addComp(data) {
  return request({
    url: "/comps",
    method: "post",
    data
  });
}

export function copyCom(data) {
  return request({
    url: "/comps/copy",
    method: "post",
    data
  });
}
